<%--
  Created by IntelliJ IDEA.
  User: xdd
  Date: 2022/7/19
  Time: 21:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String req = "request";
    String ses = "session";
    request.setAttribute("reqName",req);
    session.setAttribute("sessionName",ses);
    // response.sendRedirect("testTwo.jsp");   第二个页面没有参数
    request.getRequestDispatcher("testTwo.jsp").forward(request,response);   // 第二个压面有参数
%>
</body>
</html>
